package com.sina.shop.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-08-11:30
 */
@Component
public class TestEventLister implements ApplicationListener<TestEvent> {

    private static final Logger LOG = LoggerFactory.getLogger(UserSetPayPsdChangeEventLister.class);

    @Override
    public void onApplicationEvent(TestEvent event) {
        LOG.info("event start:{}", event.getUserId());
    }
}
